{include file='header.html'}
<ul class="nav nav-tabs">
<li class="active"><a href="{$appadmin}?m=youka">优卡管理</a></li> 
</ul>
<div class="searchbox">
<form method="get" action="{$appadmin}">
<input type="hidden" name="m" value="youka" />
<input type="hidden" name="a" value="default" />
用户：<input type="text" name="nickname" value="{$smarty.get.nickname}" class="w100" />
<input type="submit" value="搜索" class="btn btn-warning" />
</form>
</div>
<table class="table">
	<tr>
    	<td>用户</td>
        <td>寝室</td>
        <td>授信额度</td>
        <td>可用余额</td>
        <td>总消费额</td>
        <td>操作</td>
    </tr>
    {foreach item=c from=$data}
    <tr>
    	<td>{$c.nickname}</td>
        <td>{$c.ss_name}</td>
        <td>{$c.sxmoney}</td>
        <td>{$c.money}</td>
        <td>{$c.buy_money}</td>
        <td> <a href="{$appadmin}?m=youka&a=add&id={$c.id}">额度管理</a> </td>
    </tr>
    {/foreach}
</table>
{include file='footer.html'}